package cn.stard.basic.constants;

import cn.stard.basic.dto.Wecheatdto;

public class BaseConstants {

    /*两位都是短信平台类常量*/
    public static final String SMS_UID = "三三芜湖";


    public static final  String SMS_KEY = "6D8DE888BE65E95B6E60252476141DBD";

    // 配置Jwt公钥
    public  static final String PUBLIC_KEY="pethome_auth_rsa.pub";

    // 配置Jwt私钥
    public  static final String PRIVATE_KEY="pethome_auth_rsa.pri";



    public class VerifyConstants{
        /*注册时使用手机验证码常量*/
        public static  final  String BUSINESS_REGISTER_KEY ="register:";


        public static  final  String BUSINESS_BINDER_KEY ="binder:";

        /*登陆时使用的验证码常量*/
        public static  final  String BUSINESS_LOGIN_KEY = "login";
    }

    public class WecheatConstants {

        // 获取access_token的URL地址
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

        // 微信的appId
        public static final String APPID = "wxd853562a0548a7d0";

        // 微信的密钥
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";


    }

}


